package com.cy.cloud_project_server.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.cy.cloud_project_server.entity.User;

/**
 * TODO(Descriptions)
 * @author changyuan
 * @date 2018年10月23日 上午10:24:39
 * @Copyright: 2018 www.birdsh.com Inc. All rights reserved.
 */
@Mapper
public interface UserMapper {

    @Select("select * from user")
    List<User> queryAllUserList();
    
    @Select("select * from user where id = #{id}")
    User queryUserById(int id);
}
